﻿@model LERP.Web.Controllers.ViewModels.GoodsViewModels.CreateGoodsViveModel
@{
    ViewBag.Title = "新建货品";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>基本信息 </legend>
        <ul class="list_form">
        
            <li>
                @Html.LabelFor(model => model.Name)   
                @Html.TextBoxFor(model => model.Name, new { @class = "text-long" }) 
                @Html.ValidationMessageFor(model => model.Name)
            </li>
            <li>
                @Html.LabelFor(model => model.CategoryId)
                @Html.DropDownListFor(m => m.CategoryId, (ViewBag.GoodsCategory as List<SelectListItem>),new { @class = "text-long" })   
                @Html.ValidationMessageFor(model => model.CategoryId)
            </li>
            <li>
                @Html.LabelFor(model => model.Gencod)   
                @Html.TextBoxFor(model => model.Gencod, new { @class = "text-long" }) 
                @Html.ValidationMessageFor(model => model.Gencod)
            </li>
            <li>
                @Html.LabelFor(model => model.Unit)   
                @Html.TextBoxFor(model => model.Unit, new { @class = "text-long" }) 
                @Html.ValidationMessageFor(model => model.Unit)
            </li>
            <li>
                @Html.LabelFor(model => model.SellUnit)   
                @Html.TextBoxFor(model => model.SellUnit, new { @class = "text-long" }) 
                @Html.ValidationMessageFor(model => model.SellUnit)
            </li>
            <li>
                @Html.LabelFor(model => model.Price)   
                @Html.TextBoxFor(model => model.Price, new { @class = "text-long" }) 元
                @Html.ValidationMessageFor(model => model.Price)
            </li>
            <li>
                @Html.LabelFor(model => model.Num)   
                @Html.TextBoxFor(model => model.Num, new { @class = "text-long" }) 
                @Html.ValidationMessageFor(model => model.Num)
            </li>
            <li>
                @Html.LabelFor(model => model.Volume)   
                @Html.TextBoxFor(model => model.Volume, new { @class = "text-long" }) 立方米
                @Html.ValidationMessageFor(model => model.Volume)
            </li>
            <li>
                @Html.LabelFor(model => model.PackageWeight)   
                @Html.TextBoxFor(model => model.PackageWeight, new { @class = "text-long" }) Kg(千克)
                @Html.ValidationMessageFor(model => model.PackageWeight)
            </li>
            
            <li> @Html.LabelFor(model => model.Remark)   
                @Html.TextAreaFor(model => model.Remark, new {rows="1" ,cols="1"}) 
                @Html.ValidationMessageFor(model => model.Remark)</li>
        </ul>
    </fieldset>
    
    <input type="submit" class="button-submit" value="保存" />
  
    <br />
    <br />
    <br />
}

